package com.lbfamous.pair3;

/**
 * Manager
 */
public class Manager extends Employee {

    
    private double bonus;

    Manager(String name,double salary,int year,int month,int day){
        super(name, salary, year, month, day);
        bonus = 0;
    }

    @Override
    public double getSalary() {
        double salary =  super.getSalary();
        return salary + bonus;
    }

    /**
     * @param bonus the bonus to set
     */
    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    /**
     * @return the bonus
     */
    public double getBonus() {
        return bonus;
    }
}